package yf.mall.service.app;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.AppConfigEntity;
import yf.mall.vo.AppConfigVo;
import com.yf.service.BaseService;
import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * app配置信息表Service接口
 *
 *
 *
 * @date Sat Jul 29 20:56:14 CST 2023
 */
public interface AppConfigService extends BaseService<AppConfigEntity> {

    /************自动生成**************/
    List<AppConfigVo> findVo(AppConfigVo vo);

        AppConfigVo getVo(Long id);

     int updateVo(AppConfigVo vo);

       int saveVo(AppConfigVo vo);

    void downLoad(HttpServletResponse response, List<AppConfigVo> list);

    void upload(InputStream file);

    /***********BACK***********/




    /***********API***********/
    /**
     * 通过key 批量获取配置信息
     * @param keys
     * @return
     */
    List<AppConfigEntity> findConfigByKey(@Param("keys") List<String> keys);

    AppConfigEntity findConfig(String key);

}
